package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author smith
 * @since 2025-05-27
 */
public class Myorder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单号
     */
    private String orderNumber;

    /**
     * 用户id
     */
    private Integer custId;

    /**
     * 相机id
     */
    private Integer cameraId;

    /**
     * 相机名称
     */
    private String cameraName;

    /**
     * 相机图片
     */
    private String cameraImg;

    /**
     * 相机售卖价格
     */
    private BigDecimal cameraPrice;

    /**
     * 订单创建时间
     */
    private LocalDateTime orderCreateTime;

    /**
     * 订单修改时间
     */
    private LocalDateTime orderUpdateTime;

    /**
     * 0：已完成；1：未完成
     */
    private String statu;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Integer getCust_Id() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }
    public Integer getCameraId() {
        return cameraId;
    }

    public void setCameraId(Integer cameraId) {
        this.cameraId = cameraId;
    }
    public String getCameraName() {
        return cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }
    public String getCameraImg() {
        return cameraImg;
    }

    public void setCameraImg(String cameraImg) {
        this.cameraImg = cameraImg;
    }
    public BigDecimal getCameraPrice() {
        return cameraPrice;
    }

    public void setCameraPrice(BigDecimal cameraPrice) {
        this.cameraPrice = cameraPrice;
    }
    public LocalDateTime getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(LocalDateTime orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }
    public LocalDateTime getOrderUpdateTime() {
        return orderUpdateTime;
    }

    public void setOrderUpdateTime(LocalDateTime orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }
    public String getStatu() {
        return statu;
    }

    public void setStatu(String statu) {
        this.statu = statu;
    }

    @Override
    public String toString() {
        return "Order{" +
            "orderId=" + orderId +
            ", orderNumber=" + orderNumber +
            ", cust Id=" + custId +
            ", cameraId=" + cameraId +
            ", cameraName=" + cameraName +
            ", cameraImg=" + cameraImg +
            ", cameraPrice=" + cameraPrice +
            ", orderCreateTime=" + orderCreateTime +
            ", orderUpdateTime=" + orderUpdateTime +
            ", statu=" + statu +
        "}";
    }
}
